home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_10_04 / 1004110a < prev    next >
Text File  |  1992-02-08  |  496b  |  27 lines

  1. Listing 8
  2. ********
  3.  
  4.    int find_maximum(one, two, three)      
  5.    int one, two, three;  
  6.        {
  7.        int ret;
  8.        if (one > two)            
  9.            if (one > three)  
  10.                {
  11.                ret =  one;          
  12.                goto end;
  13.                }
  14.            else
  15.                {
  16.                ret = three;      
  17.                goto end;
  18.                }
  19.            ...
  20. end:
  21.        printf("find_maximum returning %d", ret);
  22.        return ret;
  23.        }   
  24.  
  25. *******   
  26.  
  27.